Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Consent Records #218

Merged
merged 10 commits into from
Apr 9, 2024
Merged

Cache Consent Records #218

merged 10 commits into from
Apr 9, 2024

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Apr 9, 2024

Adds caching to our consent records and fixes a threading issue.

On main:

Loaded 1102 consent entries in 9.039s
Second time loaded 1102 consent entries in 8.929s

On this branch:

Loaded 1102 consent entries in 9.342s
Second time loaded 1102 consent entries in 0.091s

@nplasterer nplasterer self-assigned this Apr 9, 2024
@nplasterer nplasterer marked this pull request as ready for review April 9, 2024 19:36
@nplasterer nplasterer requested a review from a team as a code owner April 9, 2024 19:36
Comment on lines -206 to 222
fun refreshConsentList(): ConsentList {
runBlocking {
consentList = ConsentList(client).load()
}
suspend fun refreshConsentList(): ConsentList {
consentList.load()
return consentList
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was the culprit for the threading issue.

@nplasterer nplasterer merged commit 3d33a40 into main Apr 9, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the np/consent-caching-threading branch April 9, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants